/*
 * WebHistoryEntity.java
 *
 * Created on April 23, 2007, 3:21 PM
 *
 *  Life Logger v1.0 
    Copyright (C) 2007  Anand Kishore (anand@semanticvoid.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

package com.semanticvoid.lifelogger.entity;

import java.util.Calendar;

/**
 * This class represents the superclass of all the entities in the system. It
 * constitutes the atttributes [guid, link, date] which are common to all the 
 * entities.
 * @author anand kishore
 */
public abstract class WebHistoryEntity {
    
    /** The GUID */
    private String guid;
    
    /** The LINK */
    private String link;
    
    /** The PUBDATE */
    private Calendar pubDate;
    
    /** The Search Score */
    private double score;
       
    /**
     * Creates a new instance of WebHistoryEntity
     * @param guid the guid
     * @param link the link
     * @param pubDate the date
     */
    public WebHistoryEntity(String guid, String link, Calendar pubDate) {
        this.guid = guid;
        this.link = link;
        this.pubDate = pubDate;
    }

    /**
     * Get the value of the GUID
     * @return the guid
     */
    public String getGuid() {
        return guid;
    }

    /**
     * Set the value of the GUID
     * @param guid the guid value
     */
    public void setGuid(String guid) {
        this.guid = guid;
    }

    /**
     * Get the value of the link
     * @return the value of the link
     */
    public String getLink() {
        return link;
    }

    /**
     * Set the value of the link
     * @param link the link
     */
    public void setLink(String link) {
        this.link = link;
    }

    /**
     * Get the date
     * @return the value of the date
     */
    public Calendar getPubDate() {
        return pubDate;
    }

    /**
     * Set the value of the date
     * @param pubDate the value of the date
     */
    public void setPubDate(Calendar pubDate) {
        this.pubDate = pubDate;
    }    

    /**
     * Get the relevance score
     * @return the elevance score
     */
    public double getScore() {
        return score;
    }

    /**
     * Set the relevance score
     * @param score the relevance score
     */
    public void setScore(double score) {
        this.score = score;
    }
}
